package com.wjc.wjc.service;

import com.wjc.wjc.unity.News;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface NewService {

    News saveNew(News news);

    News getNew(Long id);

    Page<News> listNews(Pageable pageable);

    News updateNew(Long id,News news);

    void deleteNew(Long id);

    List<News> listNews();
}
